package com.smcaiot.jfttask.south.port;

import com.smcaiot.core.stereotype.Port;
import com.smcaiot.core.stereotype.PortType;
import com.smcaiot.jfttask.domain.Task;
import com.smcaiot.jfttask.domain.TaskId;

/**
 * @Author: cz
 * @Date: 2023/9/27
 * @Description:
 */
@Port(PortType.Repository)
public interface TaskRepository {
    void saveTask(Task task);

    void deleteByTaskId(TaskId taskId);

    Task findByTaskId(TaskId taskId);
}
